.marketing-container {
  padding: 20px;
  background-color: #f5f7fa;
  min-height: 100vh;
}

.marketing-container h2 {
  margin-bottom: 20px;
  color: #333;
  font-size: 24px;
  font-weight: 600;
}

/* 标签页样式 */
.marketing-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  background-color: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-btn {
  padding: 10px 20px;
  border: none;
  background-color: transparent;
  color: #666;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background-color: #f0f2f5;
  color: #1890ff;
}

.tab-btn.active {
  background-color: #1890ff;
  color: white;
}

/* 内容区域样式 */
.marketing-content {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 区块头部样式 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e8e8e8;
}

.section-header h3 {
  color: #333;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-bar {
  display: flex;
  gap: 5px;
}

.search-bar input {
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  width: 250px;
}

.search-btn {
  padding: 8px 16px;
  background-color: #1890ff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.search-btn:hover {
  background-color: #40a9ff;
}

.add-btn,
.import-btn,
.filter-btn {
  padding: 8px 16px;
  border: 1px solid #1890ff;
  background-color: white;
  color: #1890ff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.add-btn:hover,
.import-btn:hover,
.filter-btn:hover {
  background-color: #1890ff;
  color: white;
}

.add-btn {
  background-color: #1890ff;
  color: white;
}

/* 表格样式 */
.marketing-table-container {
  margin-bottom: 20px;
  overflow-x: auto;
}

.marketing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.marketing-table th {
  background-color: #fafafa;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e8e8e8;
}

.marketing-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  color: #666;
}

.marketing-table tr:hover {
  background-color: #fafafa;
}

/* 状态标签样式 */
.status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.status.active {
  background-color: #e6f7ff;
  color: #1890ff;
}

.status.completed {
  background-color: #f6ffed;
  color: #52c41a;
}

.status.planned {
  background-color: #fff7e6;
  color: #fa8c16;
}

.status.hot {
  background-color: #fff1f0;
  color: #ff4d4f;
}

.status.warm {
  background-color: #fff7e6;
  color: #fa8c16;
}

.status.cold {
  background-color: #f0f2f5;
  color: #999;
}

.status.new {
  background-color: #f6ffed;
  color: #52c41a;
}

/* 操作按钮样式 */
.edit-btn-small,
.delete-btn-small,
.view-btn-small,
.follow-btn-small {
  padding: 4px 8px;
  margin-right: 8px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.edit-btn-small {
  background-color: #fff7e6;
  color: #fa8c16;
}

.edit-btn-small:hover {
  background-color: #fa8c16;
  color: white;
}

.delete-btn-small {
  background-color: #fff1f0;
  color: #ff4d4f;
}

.delete-btn-small:hover {
  background-color: #ff4d4f;
  color: white;
}

.view-btn-small {
  background-color: #e6f7ff;
  color: #1890ff;
}

.view-btn-small:hover {
  background-color: #1890ff;
  color: white;
}

.follow-btn-small {
  background-color: #f6ffed;
  color: #52c41a;
}

.follow-btn-small:hover {
  background-color: #52c41a;
  color: white;
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 20px;
}

.page-btn {
  padding: 6px 12px;
  border: 1px solid #d9d9d9;
  background-color: white;
  color: #666;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.page-btn:hover {
  border-color: #1890ff;
  color: #1890ff;
}

.page-btn.active {
  background-color: #1890ff;
  border-color: #1890ff;
  color: white;
}

.page-btn.prev,
.page-btn.next {
  padding: 6px 10px;
}

/* 日期筛选器样式 */
.date-filter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.date-filter label {
  font-size: 14px;
  color: #666;
}

.date-filter input[type="date"] {
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
}

.date-filter span {
  font-size: 14px;
  color: #666;
}

/* 报表概览卡片样式 */
.reports-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.report-card {
  background-color: #fafafa;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.report-card h4 {
  margin: 0 0 10px 0;
  color: #666;
  font-size: 14px;
  font-weight: 500;
}

.card-value {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 600;
  color: #333;
}

.card-change {
  font-size: 12px;
  font-weight: 500;
}

.card-change.positive {
  color: #52c41a;
}

.card-change.negative {
  color: #ff4d4f;
}

/* 图表区域样式 */
.charts-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.chart-card {
  background-color: #fafafa;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.chart-card h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.chart-placeholder {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-radius: 6px;
  border: 1px dashed #d9d9d9;
  color: #999;
}

/* 渠道分析样式 */
.channel-analysis {
  background-color: #fafafa;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.channel-analysis h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .marketing-tabs {
    flex-wrap: wrap;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .header-actions {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  
  .search-bar {
    width: 100%;
  }
  
  .search-bar input {
    width: 100%;
  }
  
  .reports-overview {
    grid-template-columns: 1fr;
  }
  
  .charts-section {
    grid-template-columns: 1fr;
  }
  
  .chart-card {
    width: 100%;
  }
  
  .date-filter {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .marketing-table {
    font-size: 12px;
  }
  
  .marketing-table th,
  .marketing-table td {
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  .marketing-container {
    padding: 10px;
  }
  
  .marketing-content {
    padding: 15px;
  }
  
  .tab-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
}